<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE HTML>
<html>
  <head>
    <%@include file="/style/jspf/resource.jsp" %>
     <%@include file="/style/jspf/jquery_validation.jspf" %>
  </head>
  <body >
  	
  <div class="easyui-panel" style="width:99%;">
  	  
 	 <!-- 查询 start -->
 	 <div class="easyui-panel ui-search-panel" style="width:100%;" title="过滤条件" data-options="iconCls:'icon-search',collapsible:true,maximizable:true" >  
 	 <form id="searchForm"  class="search_form" >
        <div class="search_fields">
<#list  columnList as columnEntity >
<#if  columnEntity.javaDataTypeWrapper =='java.util.Date' >
			<span class="search_item search_item_colspan"><span class="search_item_name" ><#if columnEntity.columnComment!=''  >${columnEntity.columnComment}<#else>${columnEntity.javaname}</#if></span> <input type="text" id="${columnEntity.javaname}_1" name="${columnEntity.javaname}_1" class="search_item_input ${columnEntity.htmlEntity.jqueryValidateCss}" ${columnEntity.htmlEntity.queryClickEvent}  title="${columnEntity.columnComment}" placeholder="最小日期" />--  <input type="text" id="${columnEntity.javaname}_2" name="${columnEntity.javaname}_2" class="search_item_input ${columnEntity.htmlEntity.jqueryValidateCss}" ${columnEntity.htmlEntity.queryClickEvent} placeholder="最大日期" /></span>
<#elseif  columnEntity.javaDataTypeWrapper!='java.util.Date' >
			<span class="search_item"><span class="search_item_name" ><#if columnEntity.columnComment!=''  >${columnEntity.columnComment}<#else>${columnEntity.javaname}</#if></span><input type="text" id="${columnEntity.javaname}" name="${columnEntity.javaname}" class="search_item_input ${columnEntity.htmlEntity.jqueryValidateCss}" ${columnEntity.htmlEntity.queryClickEvent}  title="${columnEntity.columnComment}"  placeholder="${columnEntity.columnComment}" /></span>
</#if>
</#list>
	    </div>
	    <div align="center" >
			<a href="javascript:void(0)" id="btn-search" class="easyui-linkbutton" iconCls="icon-search"  style="width:80px" >查询</a>
			<a href="javascript:void(0)" id="btn_search_reset" class="easyui-linkbutton" iconCls="icon-refresh"  style="width:80px" >重置</a>
		</div>
      </form>  
     </div> 
     <!-- 查询 end -->
	
	
     <!-- 数据列表List -->
     <div class="easyui-panel" data-options="border:false" style="width:100%;" >
     	<table id="data-list"></table>
	 </div>
	 
	 
     <!-- Edit Win&Form -->
     <div id="edit-win" class="easyui-dialog" title="编辑" mytitle="${tableComment}" data-options="closed:true,iconCls:'icon-save',modal:true,resizable:true,top:30" style="width:85%;display:none;">  
     	<form id="editForm" class="edit_form" method="post">  
     		 <input class="hidden" id="id" name="id">
     		 <div class="edit_fields">
		     	   <div class="edit_fields_title">${tableComment}</div>
<#list  columnList as columnEntity >
<#if columnEntity.pki==false  >
<#if columnEntity.columnMaxLength <= 100  >
					<span class="edit_item">
						<span class="edit_item_name" ><#if columnEntity.columnComment!=''  >${columnEntity.columnComment}<#else>${columnEntity.javaname}</#if></span>
						<input type="text" id="${columnEntity.javaname}" name="${columnEntity.javaname}" <#if columnEntity.columnMaxLength gt 0 > maxlength="${columnEntity.columnMaxLength}" </#if> class="edit_item_input ${columnEntity.htmlEntity.jqueryValidateCss}"  value="${columnEntity.defaultValue}" ${columnEntity.htmlEntity.editClickEvent} title="${columnEntity.columnComment}" placeholder="${columnEntity.columnComment}" >
					</span>
<#else>
					<span class="edit_item edit_item_rowspan">
						<span class="edit_item_name" ><#if columnEntity.columnComment!=''  >${columnEntity.columnComment}<#else>${columnEntity.javaname}</#if></span>
						<textarea id="${columnEntity.javaname}" name="${columnEntity.javaname}"  maxlength="${columnEntity.columnMaxLength}" class="edit_item_input edit_item_input_rowspan ${columnEntity.htmlEntity.jqueryValidateCss}"  value="${columnEntity.defaultValue}" ${columnEntity.htmlEntity.editClickEvent} title="${columnEntity.columnComment}" placeholder="${columnEntity.columnComment}" ></textarea>
					</span>
</#if>
</#if>
</#list>
  			</div>
     	</form>
  	 </div>
 
 </div> 	 
  	 <script type="text/javascript" src="${r"${ctx_js}"}/ux/${bussPackage}/${entityPackage}/page-${classname}.js?v=<%=Math.random()%>"></script>
  </body>
</html>
